Skip to content

Improve worldname checks#2629

Closed
benwoo1110 wants to merge 3 commits into
mainfrom
improve-worldname-checks
Closed

Improve worldname checks#2629
benwoo1110 wants to merge 3 commits into
mainfrom
improve-worldname-checks

Conversation

@benwoo1110

@benwoo1110 benwoo1110 commented May 16, 2021

Copy link
Copy Markdown
Member

Adds config option to allow unsafe (e.g. / ) to be part of the world name. Those that know what they doing can use it for subdir worlds etc. Also, integrate the new world name restrictions from #2353 to WorldNameChecker to make things cleaner.

@benwoo1110

Copy link
Copy Markdown
Member Author

example output:
image

Test build:
Multiverse-Core-4.2.3-SNAPSHOT.zip

@nicegamer7

Copy link
Copy Markdown
Member

I don't like the idea of allowing unsafe world names. I liked your idea where we check if the world is in the world container. Would that not work?

@benwoo1110

Copy link
Copy Markdown
Member Author

It will work, just more work haha, but yea its possible. I can try to see if it works out in code.

@nicegamer7

Copy link
Copy Markdown
Member

Okay, sounds good.

@nicegamer7

Copy link
Copy Markdown
Member

Actually, I think I have a simple solution. A world name must not start with a / and must not contain ...

Pretty sure that will ensure worlds stay within the server's directory.

@benwoo1110

Copy link
Copy Markdown
Member Author

Yea config option isnt the way to go

@benwoo1110 benwoo1110 closed this Jul 7, 2021
@benwoo1110 benwoo1110 deleted the improve-worldname-checks branch June 15, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants